package com.cxhc.system.service.app.impl;

import java.util.List;

import com.cxhc.system.domain.app.TreeInspect;
import com.cxhc.system.mapper.app.TreeInspectMapper;
import com.cxhc.system.service.app.ITreeInspectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 树木巡检记录Service业务层处理
 * 
 * @author Dhq
 * @date 2024-07-31
 */
@Service
public class TreeInspectServiceImpl implements ITreeInspectService
{
    @Autowired
    private TreeInspectMapper treeInspectMapper;

    /**
     * 查询树木巡检记录
     * 
     * @param id 树木巡检记录主键
     * @return 树木巡检记录
     */
    @Override
    public TreeInspect selectTreeInspectById(Long id)
    {
        return treeInspectMapper.selectTreeInspectById(id);
    }

    /**
     * 查询树木巡检记录列表
     * 
     * @param treeInspect 树木巡检记录
     * @return 树木巡检记录
     */
    @Override
    public List<TreeInspect> selectTreeInspectList(TreeInspect treeInspect)
    {
        return treeInspectMapper.selectTreeInspectList(treeInspect);
    }

    /**
     * 新增树木巡检记录
     * 
     * @param treeInspect 树木巡检记录
     * @return 结果
     */
    @Override
    public int insertTreeInspect(TreeInspect treeInspect)
    {
        return treeInspectMapper.insertTreeInspect(treeInspect);
    }

    /**
     * 修改树木巡检记录
     * 
     * @param treeInspect 树木巡检记录
     * @return 结果
     */
    @Override
    public int updateTreeInspect(TreeInspect treeInspect)
    {
        return treeInspectMapper.updateTreeInspect(treeInspect);
    }

    /**
     * 批量删除树木巡检记录
     * 
     * @param ids 需要删除的树木巡检记录主键
     * @return 结果
     */
    @Override
    public int deleteTreeInspectByIds(Long[] ids)
    {
        return treeInspectMapper.deleteTreeInspectByIds(ids);
    }

    /**
     * 删除树木巡检记录信息
     * 
     * @param id 树木巡检记录主键
     * @return 结果
     */
    @Override
    public int deleteTreeInspectById(Long id)
    {
        return treeInspectMapper.deleteTreeInspectById(id);
    }
}
